let Three=document.getElementsByClassName("Three");
let ContentRight=document.getElementsByClassName("ContentRight");
Three[0].style.backgroundColor="#42bbfd";
Three[0].style.color="#ffffff";
/*点击左侧右侧改变，左侧颜色改变*/
for(let i=1;i<ContentRight.length;i++){
    ContentRight[i].style.display="none";
}
for(let i=0;i<Three.length;i++){
    Three[i].onclick=function(){
        for(let j=0;j<ContentRight.length;j++){
            if(j==i){
                continue
            }
            Three[j].style.backgroundColor="";
            Three[j].style.color="";
            ContentRight[j].style.display="none";
        }
        Three[i].style.backgroundColor="#42bbfd";
        ContentRight[i].style.display="block";
        Three[i].style.color="#ffffff";
    }
}
let articlesContent=document.getElementsByClassName("articlesContent");
for(let i=0;i<articlesContent.length;i++){
    let re1 = new RegExp("<.+?>","g");//匹配html标签的正则表达式，"g"是搜索匹配多个符合的内容
    articlesContent[i].innerHTML=articlesContent[i].innerText.replace(re1,'');//执行替换成空字符
}
let follows=document.getElementsByClassName("follows");
for(let i=0;i<follows.length;i++){
    follows[i].onclick=function(){
        location.href=this.getAttribute('href');
    }
}
let contents=document.getElementsByClassName("contents");
for(let i=0;i<contents.length;i++){
    contents[i].onclick=function(){
        location.href=this.getAttribute('href');
    }
}
let articlesH4=document.getElementsByClassName("articlesH4");
for(let i=0;i<articlesH4.length;i++){
    articlesH4[i].onclick=function(){
        location.href=this.getAttribute('href');
    }
}